var myComponent = Vue.component('my-component', {
    template: '<div @click.native="doIt">I`m a component, create from <code>Vue.component({..})</code></div>',
    methods: {
        doIt: function () {
            console.log('do it!');
        }
    }
});
var app = new Vue({
    el        : '#app',
    data      : {},
    components: {
        'private-component': {
            template: '<div>内部私有组件{{message}}</div>',
            data: function () {
                return {
                    message: 'adasds'
                }
            }
        }
    }
});
var app1 = new Vue({
    el        : '#app1'
});